﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;

namespace project_phoenix.source
{
    public class Buff
    {
        // Members
        public enum StatNames { Strength, Defense, Magic };
        private int mModAmt;
        private StatNames mStat;

        // Functions
        public Buff(StatNames stat, int amt)
        {
            mStat = stat;
            mModAmt = amt;
        }

        public void ApplyBuff(PlayableEntity player)
        {
            switch (mStat)
            {
                case StatNames.Strength:
                    player.Damage += mModAmt;
                    break;
                case StatNames.Defense:
                    player.Defense += mModAmt;
                    break;
                case StatNames.Magic:
                    player.Magic += mModAmt;
                    break;
                default:
                    break;

            }
        }

        public void Remove(PlayableEntity player)
        {
            switch (mStat)
            {
                case StatNames.Strength:
                    player.Damage -= mModAmt;
                    break;
                case StatNames.Defense:
                    player.Defense -= mModAmt;
                    break;
                case StatNames.Magic:
                    player.Magic -= mModAmt;
                    break;
                default:
                    break;

            }
        }
    }
}
